#! /usr/bin/python

def fibonacci(num):
  a = 0
  b = 1
  c = 0
  sequence = []
  
  sequence.append(a)
  sequence.append(b)
  
  while c < num:   
          c = a + b
          sequence.append(c)
          a = b
          b = c  

  print sequence
  return sequence 
       	

def main():
  fibonacci(4)
  fibonacci(13)



if __name__ == '__main__':
  main()
